package com.ml.mall.bean.req.notifation;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *   @description    :description 
 *   @author         :zxm
 *   @date           :2021/5/18
 *   @version        :1.0
**/
@ApiModel(value = "通知修改model")
@Data
public class NotifationEditDto {
    @ApiModelProperty(value = "主键id")
    @NotNull(message = "主键id不能为空")
    private Long id;

    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "内容")
    @NotBlank(message = "内容不能为空")
    private String contentTxt;

    @ApiModelProperty(value = "0：全部；1买家；2：卖家")
    @NotNull(message = "通知类型不能为空")
    private Integer notifationType;
}
